package com.abcdefg.springdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;


@SpringBootApplication
public class SpringDemoApplication {


    public static void main(String[] args) {

        //获取Spring上下文对象
//        ApplicationContext context =

                SpringApplication.run(SpringDemoApplication.class, args);
        //从Spring上下文中获取对象
//        Dog dog = context.getBean(Dog.class);
//        System.out.println(dog);
    }

}
